package ooday04;
/** getter/setter 的演示 */
public class GetterSetterDemo {
    public static void main(String[] args) {
        //赋值调set 取值调get
        Point p= new Point();
        p.setX(100);
        p.setY(200);
        System.out.println(p.getX()+","+p.getY());
    }
}
